/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package xmarti.vacaxm.utils;

/**
 *
 * @author xmarti
 */
public class UpdateAction {
    private boolean mothers=false;
    private boolean fathers= false;
    private boolean origins=false;
    private boolean destinations= false; 
    public UpdateAction (){
        
    }
    public boolean isMothers() {
        return mothers;
    }
    
    public void setMothers(boolean mothers) {
        this.mothers = mothers;
    }

    public boolean isFathers() {
        return fathers;
    }

    public void setFathers(boolean fathers) {
        this.fathers = fathers;
    }

    public boolean isOrigins() {
        return origins;
    }

    public void setOrigins(boolean origins) {
        this.origins = origins;
    }

    public boolean isDestinations() {
        return destinations;
    }
    
    public void setDestinations(boolean destinations) {
        this.destinations = destinations;
    }
    public void reset(){
        this.destinations=false ; 
        this.fathers=false;
        this.mothers=false;
        this.origins=false;
    }
    public boolean isAction (){
        if (this.fathers||this.mothers||this.origins||this.destinations) return true;        
        return false;
    }
}
